<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<composite:interface>

</composite:interface>

<composite:implementation>

	<h:outputStylesheet library="css" name="bootstrap.min.css" />
	
		<h:form id="tabuadaScoreForm">
			<h:dataTable value="#{tabuadaScoreBean.allOfFame}" var="o" 
    			styleClass="table table-striped"
    		>
 
    			<h:column>
    				<!-- column header -->
    				<f:facet name="header">Nome</f:facet>
    				<!-- row record -->
    				#{o.username}
    			</h:column>
 
    			<h:column>
    				<f:facet name="header">Tempo (s)</f:facet>
    				#{o.scoreTime}
    			</h:column>
 
    			<h:column>
    				<f:facet name="header">Resultado</f:facet>
    				#{o.score}
    			</h:column>
 
    			<h:column>
    				<f:facet name="header">Nº Perguntas</f:facet>
    				#{o.totalQuestions}
    			</h:column>
    			
    			<h:column>
    				<f:facet name="header">Data</f:facet>
    				#{o.formattedDate}
    			</h:column>
 
    		</h:dataTable>
 
		
		</h:form>
				


</composite:implementation>
</html>
